const Ajax = window.ajaxbusinessAssets;

//字典
export const apiCommonData = (params) => Ajax.request(`/v1/business/dict/info/list`, 'post', params, {
  showLoading: true
});

//点击未生效版本查workid
export const getWorkId = (params) => Ajax.request(`/v1/basic/workInfo/work/updateResultWorkId`, 'post', params, {
  showLoading: true
});

//楼层规划已审核的
export const apiBuildingInfo = (params) => Ajax.request(`/v1/basic/floor/proc/floor/floorAndPartitionAndSpaceList`, 'post', params, {
  showLoading: true
});

//楼层规划草稿
export const apiBuildingDraft = (params) => Ajax.request(`/v1/basic/floor/proc/floor/procFloorAndPartitionAndSpaceList`, 'post', params, {
  showLoading: true
});

//分区新增
export const apiAreaAdd = (params) => Ajax.request(`/v1/basic/partition/partition/createPartition`, 'post', params, {
  showLoading: true
});

//分区修改
export const apiAreaUpdate = (params) => Ajax.request(`/v1/basic/partition/partition/updatePartition`, 'post', params, {
  showLoading: true
});

//分区删除
export const apiAreaDelete = (params) => Ajax.request(`/v1/basic/partition/partition/deletePartition`, 'post', params, {
  showLoading: true
});

//楼层新增
export const apiFloorAdd = (params) => Ajax.request(`/v1/basic/floor/proc/floor/createFloor`, 'post', params, {
  showLoading: true
});

//楼层修改
export const apiFloorUpdate = (params) => Ajax.request(`/v1/basic/floor/proc/floor/updateFloor`, 'post', params, {
  showLoading: true
});

//楼层删除
export const apiFloorDelete = (params) => Ajax.request(`/v1/basic/floor/proc/floor/deleteFloor`, 'post', params, {
  showLoading: true
});

//楼层图纸更新
export const apiFloorUpload = (params) => Ajax.request(`/v1/basic/floor/proc/floor/updateFloorDrawing`, 'post', params, {
  showLoading: true
});

//楼层图纸cad
export const apiUpdateCad = (params) => Ajax.request(`/v1/basic/commercialrent/svg/info/update`, 'post', params, {
  showLoading: true
});

//根据版本查询
export const apiGetInfoByVersion = (params) => Ajax.request(`/v1/basic/floor/proc/floor/queryFloorInfoByVersion`, 'post', params, {
  showLoading: true
});

//楼层删除
// export const apiFloorDelete = (params) => Ajax.request(`/v1/basic/partition/partition/deletePartition`, 'post', params, {
//   showLoading: true
// });

//商铺新增
export const apiShopAdd = (params) => Ajax.request(`/v1/basic/shop/proc/shop/createShop`, 'post', params, {
  showLoading: true
});

//所有空间的修改
export const apiSpaceUpdate = (params) => Ajax.request(`/v1/basic/shop/proc/asset/update`, 'post', params, {
  showLoading: true
});

//初始化本楼层所有点位位置
export const apiInitPoint = (params) => Ajax.request(`/v1/basic/shop/proc/asset/update`, 'post', params, {
  showLoading: true
});

//商铺详情
export const apiShopInfo = (params) => Ajax.request(`/v1/basic/shop/proc/shop/shopInfo`, 'post', params, {
  showLoading: true
});

//商铺删除
export const apiShopDelete = (params) => Ajax.request(`/v1/basic/shop/proc/shop/deleteShop`, 'post', params, {
  showLoading: true
});

//商铺拆铺
export const apiShopExcrete = (params) => Ajax.request(`/v1/basic/shop/proc/shop/excreteShop`, 'post', params, {
  showLoading: true
});

//商铺合铺
export const apiShopMerge = (params) => Ajax.request(`/v1/basic/shop/proc/shop/pointShop`, 'post', params, {
  showLoading: true
});

//商铺提审的信息
export const apiShopApproveInfo = (params) => Ajax.request(`/v1/basic/shop/proc/shop/ShopList`, 'post', params, {
  showLoading: true
});

//空间新增
export const apiSpaceAdd = (params) => Ajax.request(`/v1/basic/activity/create`, 'post', params, {
  showLoading: true
});

//楼道 消防通道的创建
export const apiSpaceCreate = (params) => Ajax.request(`/v1/basic/space/proc/space/createSpace`, 'post', params, {
  showLoading: true
});

//楼道 消防通道的删除
export const apiSpaceDelete = (params) => Ajax.request(`/v1/basic/space/proc/space/delete`, 'post', params, {
  showLoading: true
});

//活动空间的删除
export const apiActivitySpaceDelete = (params) => Ajax.request(`/v1/basic/activity/delete`, 'post', params, {
  showLoading: true
});